﻿.scrollbar {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.scrollbar_wrap {
    overflow: auto;
    height: 100%;
}

.scrollbar_wrap--hidden-default {
    scrollbar-width: none;
}

    .scrollbar_wrap--hidden-default::-webkit-scrollbar {
        display: none;
    }

/**
    滚动条与滚动滑块
*/
.scrollbar__bar {
    position: absolute;
    right: 2px;
    bottom: 2px;
    z-index: 1;
    border-radius: 4px;
}

    .scrollbar__bar.is-vertical {
/*        width: 6px;*/
        top: 2px;
    }

        .scrollbar__bar.is-vertical > div {
            width: 100%;
        }

    .scrollbar__bar.is-horizontal {
/*        height: 6px;*/
        left: 2px;
    }

        .scrollbar__bar.is-horizontal > div {
            height: 100%;
        }

.scrollbar__thumb {
    position: relative;
    display: block;
    width: 0;
    height: 0;
    border-radius: inherit;
/*    background-color: #909399;*/
    transition: 0.3s background-color;
    opacity: 0.3;
}

.scrollbar__thumb:hover {
    cursor: pointer;
/*    background-color: #909399;*/
    opacity: 0.5;
}

